package com.zzz.system.domain.exam.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @BelongsProject: oj-project
 * @BelongsPackage: com.zzz.system.domain.exam.dto
 * @Author: zhai
 * @CreateTime: 2025-10-20  13:28
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class ExamAddDTO {
    @NotNull(message = "竞赛题目不能为空")
    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
